package org.deft.timer {
	import flash.events.Event;

	public class DStopWatchEvent extends Event {
		public static const TICK:String = "tick";

		//event
		public static const CHANGE:String = "change";

		public static const TIMER_OVER:String = "timerOver";
		public static const ALL_OVER:String = "all_timerOver";
		public static const SECOND_CHANGE:String = "second_change";
		public static const MINUTE_CHANGE:String = "minute_change";
		public static const RESET:String = "etimer_reset";
		public static const START:String = "etimer_start";
		public static const STOP:String = "etimer_stop";
		public static const PAUSE:String = "etimer_pause";

		//存放数据用
		public var data:Object;

		public function DStopWatchEvent(type:String, data:Object = null, bubbles:Boolean = false,
									   cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			this.data = data;

		}

		public override function clone():Event {
			return new DStopWatchEvent(type, data, bubbles, cancelable);

		}

		public override function toString():String {
			return formatToString("ExactTimerEvent", "type", "data", "bubbles", "cancelable");

		}

	}

}

